/*
 * All rights Reserved, Designed By DataDriver
 * Copyright:    DataDriver.Inc
 * Company:      Zhuo Wo Infomation Technology (ShangHai) CO.LTD
 */
package com.sun.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;

import java.util.ArrayList;
import java.util.List;

/**
 * @Value() 里面可以直接写值，#{}SpEl表达式,${}取出配置文件中的值
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    // @Value("张三")
    @Value("${user.name}")
    private String usernames;

    //@Value("23213@qq.com")
    @Value("${user.email}")
    private String userEmail;

    @Value("${user.pwd}")
    private String password;

    @Value("#{'${user.habbot:}'.empty?null:'${user.habbot:}'.split(',')}")
    private List<String> habbot;

}
